<template>
  <el-table :data="tableData" style="width: 100%" border>
    <el-table-column prop="product_id" label="id" width="100" />
    <el-table-column prop="title" label="标题" width="200" />
    <el-table-column prop="product_imgs" label="封面" />
  </el-table>
</template>

<script lang="ts" setup>
import { getProductList } from "@/api/product";

let tableData = [];
getProductList({
  page: 1,
  limit: 10
}).then(res => {
  console.log(res);
  tableData = res.data;
});
</script>

<style lang="scss" scoped></style>
